package jp.co.realsys.model;

import com.opensymphony.xwork2.validator.annotations.CustomValidator;
import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;



public class StudentModel implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4168809597250495960L;
	private String id;
	private String name;
	private String birthday;
	private String address;
	
	public void setId(String id){
		this.id =id;
	}
	@RequiredStringValidator(key="requiredstring")
	public String getId(){
		return this.id;
	}
	public void setName(String name){
		this.name =name;
	}
	@RequiredStringValidator(key="requiredstring")
	public String getName(){
		return this.name;
	}
	public void setBirthday(String readLine){
		this.birthday =readLine;
	}
	@CustomValidator(type="dateStringField", key="datestring")
	public String getBirthday(){
		return this.birthday;
	}
	public void setAddress(String address){
		this.address =address;
	}
	public String getAddress(){
		return this.address;
	}
	public String toString(){
		String msg="\t"+this.id+"\t"+this.name+"\t"+this.birthday+"\t"+this.address;
		return msg;
	}

		


}
